package com.engine4cloud.tdf.supervision.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.engine4cloud.tdf.common.data.web.response.PageInfo;
import com.engine4cloud.tdf.common.data.web.response.Params;
import com.engine4cloud.tdf.supervision.dto.create.JzdxInterdictCreateDTO;
import com.engine4cloud.tdf.supervision.dto.query.JzdxInterdictQueryDTO;
import com.engine4cloud.tdf.supervision.dto.result.JzdxInterdictResultDTO;
import com.engine4cloud.tdf.supervision.dto.update.JzdxInterdictUpdateDTO;
import com.engine4cloud.tdf.supervision.entity.JzdxInterdictEntity;

public interface JzdxInterdictService extends IService<JzdxInterdictEntity> {

    PageInfo<JzdxInterdictResultDTO> pageList(Params page, JzdxInterdictQueryDTO dto);

    JzdxInterdictResultDTO getById(Long id);

    Boolean create(JzdxInterdictCreateDTO dto);

    Boolean update(JzdxInterdictUpdateDTO dto);

    JzdxInterdictResultDTO findLatest(String code);
}